x86: Only allocate vpid for initialised vcpus.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Aug 2009 11:54:43 +0000 (12:54 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Aug 2009 11:54:43 +0000 (12:54 +0100)
commit9e212a4e9ab44870265027c9feb96cb72c80347c
tree47135b65cbc7e050de23b2812c65664b4632350b
parent487a1cffd71a34d729c05c9a379ff05ea39b9fe2
x86: Only allocate vpid for initialised vcpus.

Currently, 32 vpids are allocated for each
domain statically, it blocks to support more
vcpus for HVM domain, so remove the limit and
only allocate vpid for intilized vcpus. In this
way, vpid can be non-contiguous for vcpus of one
single domain.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h